﻿<Window x:Class="Vroom.TableListener.Views.MainView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Table Listener" Height="800" Width="600">
	<Grid>
		<Grid x:Name="LayoutRoot">

			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>

			<Grid x:Name="TableDetailsGrid" Grid.Row="0">

				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>

				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="100" />
					<ColumnDefinition Width="250" />
					<ColumnDefinition Width="50" />
				</Grid.ColumnDefinitions>



				<Label x:Name="ConnectionStringLbl" Content="Connection" Grid.Row="0" Grid.Column="0"/>
				<TextBox x:Name="ConnectionStringtxt"                    Grid.Row="0" Grid.Column="1"/>

				<Label x:Name="TableNameLbl" Content="TableName"  Grid.Row="1" Grid.Column="0"/>
				<TextBox x:Name="TableNameLblTxt"                 Grid.Row="1" Grid.Column="1"/>
				
				<Label x:Name="TableColsLbl" Content="TableCols"  Grid.Row="2" Grid.Column="0"/>
				<TextBox x:Name="TableColsTxt"                    Grid.Row="2" Grid.Column="1"/>

				<!--
				<Button x:Name="StartBtn" Grid.Column="2" Grid.Row="0"  Command="{Binding MainViewModel.StartFetch}">Start</Button>
				<Button x:Name="StopBtn"  Grid.Column="2" Grid.Row="1"  Command="{Binding MainViewModel.StopFetch}">Stop</Button>
				-->

				<Button x:Name="StartBtn" Grid.Column="2" Grid.Row="0"  Click="StartBtn_Click">Start</Button>
				<Button x:Name="StopBtn"  Grid.Column="2" Grid.Row="1"  Click="StopBtn_Click">Stop</Button>

			</Grid>

			<DataGrid x:Name="dataGrid" AutoGenerateColumns="False" Grid.Row="1">
				<DataGrid.Columns>
					<DataGridTextColumn Header="Name"		 Binding="{Binding Path=Name}" />
					<DataGridTextColumn Header="Description" Binding="{Binding Path=Description}" />
				</DataGrid.Columns>
			</DataGrid>
			
		</Grid>
	</Grid>
</Window>
